package com.buchong.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buchong.mapper.PayMapper;
import com.buchong.pojo.Pay;
import com.buchong.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ImPayService extends ServiceImpl<PayMapper,Pay> implements PayService {
    @Autowired
    private PayMapper payMapper;


    @Override
    public Pay fingByName(String name) {
        return payMapper.selectOne(new QueryWrapper<Pay>().eq("name",name));

    }

    @Override
    public Pay findById(Integer id) {
        return payMapper.selectById(id);
    }
}
